import { createApp } from 'vue'
import App from './App.vue'
import components from "@/components/ui"
import router from "@/router/router"
import directives from '@/directives'
import store from "@/store/index"

const app = createApp(App)

components.forEach(component => {
    app.component(component.name, component)
});

directives.forEach(directive => {
    app.directive(directive.name, directive)
})

app
    .use(router)
    .use(store)
    .mount('#app')